﻿@using ZhongKeSite.Entity;
@using Webdiyer.AspNetCore;
@model PagedList<News>

<div class="banner banner-contact wow fadeInUp">
    <div class="container">
        <h1 class="title-page">创新</h1>
        <p class="des">与我们一起探索未来农业更多可能</p>
    </div>
</div>
<div class="page page-innovate-list">
    <section class="s1 container">
        <div class="inn-list">
            @foreach (News item in Model)
            {
                <div class="item wow fadeInUp">
                    <div class="row">
                        <div class="col-md-auto"><a class="pic" href="/detail?id=@item.ID"><img src="@item.CoverImage" alt=""></a></div>
                        <div class="col-md">
                            <div class="txt">
                                <h3 class="title"><a href="/detail?id=@item.ID">@item.Title</a></h3>
                                <time>@item.PublishDate.Value.ToString("yyyy.Mm.dd")</time>
                                <p class="des">@item.Remark</p>
                            </div>
                            <div class="inn-list"></div>
                        </div>
                    </div>
                </div>
            }
        </div>
        <footer class="news-footer wow fadeInUp">
            @Html.Pager((IPagedList)Model, new PagerOptions()
            {
                    ShowFirstLast = false,
                    PrevPageText = "上一页",
                    NextPageText = "下一页",
                   PageIndexParameterName = "pageindex",
                   NumericPagerItemCount = 5,
                   CssClass = "pagination text-center",
                   CurrentPagerItemTemplate = "<li class=\"page-item active\"><a class=\"page-link\" href=\"javascript:;\">{0}</a></li>",
                   DisabledPagerItemTemplate = "<li class=\"page-item disabled\"><a class=\"page-link\" href=\"javascript:;\">{0}</a></li>",
                   PagerItemTemplate = "<li class=\"page-item\">{0}</li>"
               })
        </footer>
    </section>
</div>